import * as ax from './request';

export const url = ax.url + '/op'
// export const url = ax.url

export const getMemberWalletList = (params) => {
    return ax.g(url + '/member/wallets', params)
}

export const getMemberWallet = (params) => {
    return ax.g(url + '/member/wallets/' + params.id, params)
}

export const createMemberWallet = (params) => {
    return ax.p(url + '/member/wallets', params)
}

export const updateMemberWallet = (params) => {
    return ax.u(url + '/member/wallets/' + params.id, params)
}

export const delMemberWallet = (params) => {
    return ax.d(url + '/member/wallets/' + params.id, params)
}

export const finishOrder = (params) => {
  return ax.p(url + '/member/wallets/finish', params)
}
